import request from '@/utils/request'

export function listRubbishTypeByParentId (query) {
  return request({
    url: '/system/rubbishType/listByParentId',
    method: 'get',
    params: query
  })
}

// 查询系统垃圾类型表列表
export function listRubbishType (query) {
  return request({
    url: '/system/rubbishType/list',
    method: 'get',
    params: query
  })
}

// 查询系统垃圾类型表详细
export function getRubbishType (id) {
  return request({
    url: '/system/rubbishType/' + id,
    method: 'get'
  })
}

// 新增系统垃圾类型表
export function addRubbishType (data) {
  return request({
    url: '/system/rubbishType',
    method: 'post',
    data: data
  })
}

// 修改系统垃圾类型表
export function updateRubbishType (data) {
  return request({
    url: '/system/rubbishType',
    method: 'put',
    data: data
  })
}

// 删除系统垃圾类型表
export function delRubbishType (id) {
  return request({
    url: '/system/rubbishType/' + id,
    method: 'delete'
  })
}
